package au.edu.uq.itee.engg2800.team19;

public enum BaudRate {
	 BR_9600(9600,"9600"), BR_4800(4800,"4800"), BR_2400(2400,"2400"), BR_1200(1200,"1200");

	 private int code;
	 private String displayName;

	 private BaudRate(int c,final String displayName) {
	   code = c;
	   this.displayName=displayName;
	 }

	 public int getCode() {
	   return code;
	 }

	 static String[] enumsToStringArray() {
	        String[] results = new String[BaudRate.values().length];
	        int count = 0;
	        for (BaudRate each  : BaudRate.values()) {
	            results[count] = each.toString();
	            count++;
	        }
	        return results;
	 }
	 @Override
	 public String toString(){
	     return displayName;
	}

}